package com.xysoft.admin.service;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Component;

@Component
public interface IProblemService extends IBaseService {
	/**
	 * 获取题目列表.
	 */
	public String get(HttpServletRequest request, HttpSession session);
	/**
	 * 获取题目类型.
	 */
	public String getType();
	/**
	 * 获取所有题目类型.
	 */
	public String getAllType();
	/**
	 * 添加或修改题目.
	 */
	public Map<String, Object> addOrModify(HttpServletRequest request, HttpSession session);
	/**
	 * 查找相应的题号.
	 */
	public String getNumber(HttpServletRequest request, HttpSession session);
	/**
	 * 上传测试数据.
	 */
	public boolean data(HttpServletRequest request, HttpSession session) throws Exception;
	/**
	 * 获取上传测试数据.
	 */
	public String getData(HttpServletRequest request, HttpSession session);
	/**
	 * 删除测试数据.
	 */
	public Map<String, Object> removeData(HttpServletRequest request, HttpSession session);
	/**
	 * 获取测试数据明细.
	 */
	public Map<String, Object> getDetail(HttpServletRequest request, HttpSession session);
	/**
	 * 保存测试数据明细.
	 */
	public Map<String, Object> saveDetail(HttpServletRequest request, HttpSession session);
	/**
	 * 导入测试数据压缩包.
	 */
	public boolean importData(HttpServletRequest request, HttpSession session);
}
